home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Games: Greatest Hits 1996
/
Amiga Games: Greatest Hits 1996.iso
/
archive
/
userbox
/
publicdomain
/
universalgio.lha
/
UniversalGIO
/
HHsConvertIFFAnim.rx
< prev
next >
Wrap
Text File
|
1996-07-20
|
2KB
|
58 lines
/* ConvertIFFAnim.rx for Photogenics © by Helmut Hoffmann 1996 */
/* Make HHsYUVSq animation from IFF animation formats */
/* with Photogenics 2 or higher */
OPTIONS RESULTS
if ~SHOW('p','PHOTOGENICS.1') then do
say "This script needs a running Photogenics 2 or higher"
say "and HHsYUSSqSaver.gio to convert animations"
exit
end
say "Please switch to Photogenics screen for file selection."
address PHOTOGENICS.1
PgsToFront
askfile '"Select source IFF animation"' ""
if rc~=0 then exit
sourceanim=result
asksavefile '"Select destination HHsYUVSq animation name"' ""
if rc~=0 then exit
destanim=result
asknumber '"Number of frames requester"' '"How many frames should be loaded?"' 1 999
framemax=result
say "Source animation:" sourceanim
say "Load max. " framemax " Frames"
say "Destination animation:" destanim
OpenProgress '"Animation conversion"' '"Conversion begins..."'
frame=1
DO FOREVER
say "Trying to load frame " frame
SetProgress '"Load frame 'frame'"' (frame*2-1)*50/framemax
if result=0 then leave
LoadHideGIO "ANIM" sourceanim frame
if rc~=0 then leave
buffer=result
say "Trying to save frame " frame
SetProgress '"Save frame 'frame'"' frame*100/framemax
if result=0 then do
CLOSE buffer
leave
end
SAVE buffer "HHsYUVSequence" "" destanim
if rc~=0 then do
CLOSE buffer
SHOWERROR '"Animation conversion failed! Check frame dimensions etc..."'
leave
end
CLOSE buffer
frame=frame+1
if frame>framemax then leave
END
CloseProgress